<?php

class CModelField{
	
	public $id_control;
	public $name;
	public $value;
	public $length;
	public $inputmask;
	
	public $db;
	public $validation;
	
	public function __construct($id_control, $opts){
		$this->id_control	= $id_control;
		$this->name 		= $opts['name'];
		$this->value		= $opts['value'];
		$this->length		= $opts['length'];
		$this->db			= $opts['db'];
		$this->validation	= $opts['validation'];
		$this->inputmask	= $opts['inputmask'];
	}
	
	public function __toString()
	{
		return $this->value;
	}
}